//
//  NSAttributedString+Extesnion.swift
//  EasyTrademarkRegqurySearch
//
//  Created by 伊伊 on 2024/2/29.
//

import UIKit


extension NSMutableAttributedString{
    func addAttributes(_ attrs: [NSAttributedString.Key : Any] = [:], string:String){
        let str = self.string as NSString
        let range =  str.range(of: string)
        self.addAttributes(attrs, range: range)
    }
    
    
}
